package com.sharding.demo.service.impl;

import com.sharding.demo.entity.Staff;
import com.sharding.demo.entity.Student;
import com.sharding.demo.mapper.StaffMapper;
import com.sharding.demo.mapper.StudentMapper;
import com.sharding.demo.service.StaffService;
import com.sharding.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffServiceImpl implements StaffService {

    @Autowired
    private StaffMapper staffMapper;

    @Override
    public List<Staff> findAll() {
        return staffMapper.findAll();
    }

    @Override
    public void save(Staff staff) {
        staffMapper.save(staff);
    }
}
